import fmtEvent from '../_util/fmtEvent';
import { MaskDefaultProps } from './props';
Component({
    data: {
        supportSjs: my.canIUse('sjs.event'),
    },
    props: MaskDefaultProps,
    methods: {
        onMaskClick: function (e) {
            var onMaskTap = this.props.onMaskTap;
            if (typeof onMaskTap === 'function') {
                var event_1 = fmtEvent(this.props, e);
                onMaskTap(event_1);
            }
        },
    },
});
